package com.aaa.statistics.Controller.api;

import com.aaa.entity.Registration;
import com.aaa.statistics.service.WeekService;
import com.aaa.statistics.vo.RegistrationVo;
import com.aaa.vo.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("statistics/api/weekSts")
public class WeekStatisticsController {

    @Resource
    private WeekService weekService;

    /**
     *查询医生工作量统计
     */
    @PostMapping("getWorkList")
    public Result<List<Registration>> getWorkList(@RequestBody RegistrationVo registrationVo){
        return weekService.findworkRegList(registrationVo);
    }
    /**
     * 查询总体工作量统计
     */
    @PostMapping("getTotalWorkList")
    public Result<List<Map<String,Object>>> getTotalWorkList(@RequestBody RegistrationVo registrationVo){
        return weekService.findTotalworkRegList(registrationVo);
    }
}
